#include <iostream>
#include <fstream>
#include <list>



#ifndef URL_H_
#define URL_H_


class URL{
public:
	URL(){};
	URL(std::string dominio_l, std::string path_l, std::string protocol_l);
	std::string get_path() const;
	std::string get_dominio() const;
	std::string get_protocol() const;
	short int getDepth() const {return depth;}
	bool isValid() { return (dominio!="");}
	void becomeInvalid() { dominio = "";} 
	std::string toString() const {return (protocol + dominio + path);}
	
private:
	std::string path;
	std::string dominio;
	std::string protocol;	
	short depth;
};


#endif /*URL_H_*/
